package cn.iocoder.yudao.module.trade.cart.vo;

import cn.iocoder.yudao.module.api.product.sku.dto.ProductSkuRespDTO;
import cn.iocoder.yudao.module.api.product.spu.dto.ProductSpuRespDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description = "用户 App - 用户的购物车列表项 Response VO")
@Data
public class AppCartItemRespVO {

    @Schema(description = "购物项的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long id;

    @Schema(description = "店铺编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long shopId;

    @Schema(description = "产品数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer count;

    @Schema(description = "是否选中", requiredMode = Schema.RequiredMode.REQUIRED, example = "false")
    private Boolean selected;

    @Schema(description = "是否失效", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
    private Boolean invalid;

    @Schema(description = "失效原因", example = "产品已下架")
    private String invalidReason;

    @Schema(description = "产品 SPU")
    private ProductSpuRespDTO spu;

    @Schema(description = "产品 SKU")
    private ProductSkuRespDTO sku;

}
